package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.entity.WaresManageDetail;
import com.example.demo.vo.WaresManageDetailExport;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface WaresManageDetailMapper extends BaseMapper<WaresManageDetail> {
    /**
     * 分页查询
     * @param page
     * @return
     */
    IPage<List<WaresManageDetailExport>> selectWaresManageDetailPage(Page page);

    /**
     * 报表信息
     * @param startTime
     * @param endTime
     * @return
     */
    List<Map<String, String>> selectWaresManageDetailReport(@Param(value = "startTime") String startTime,
                                                                   @Param(value = "endTime")String endTime);
}
